function login() {
    layer.open({
        type: 2, title: false, shade: 0.1, resize: true, scrollbar: false, id: 'id',
        btnAlign: 'c', area: ['450px', '650px'], fixed: true, maxmin: false, moveOut: false, move: false, moveType: 1, content: '/tool/my'
    })
}
var islogin = function () {
    var login = false;
    layui.jquery.ajax({
        url: "/tool/islogin", async: false, success: function (res) {
            try {
                login = res;
            } catch {
                login = false;
            }
        },
        error: function () {
            login = false;
        }
    });
    return login;
}
 